package com.onstar.cn.framework.network.entity;

import java.util.LinkedHashMap;

/**
 * Http request entity
 *
 * @author 7828wc
 *
 */
public class RequestEntity {
	private String url;
	private String body;
	private String method;
    private int timeout = 60 * 1000;

    public Object reportSender;

	public Object report;

	public void setReportSender(Object reportSender) {
		this.reportSender = reportSender;
	}

	public void setReport(Object report) {
		this.report = report;
	}

	/**
	 * Accept-Language
	 */
	private String language;
	/**
	 * Accept
	 */
	private String accept;
	/**
	 * Authorization
	 */
	private String authorization;

	private boolean isByteResponse=false;

	private LinkedHashMap<String, Object> customHeads = new LinkedHashMap<String, Object>();

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getAccept() {
		return accept;
	}

	public void setAccept(String accept) {
		this.accept = accept;
	}

	public String getAuthorization() {
		return authorization;
	}

	public void setAuthorization(String authorization) {
		this.authorization = authorization;
	}

	public LinkedHashMap<String, Object> getCustomHeads() {
		return customHeads;
	}

	public void setCustomHeads(LinkedHashMap<String, Object> customHeads) {
		this.customHeads = customHeads;
	}

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

	public boolean isByteResponse() {
		return isByteResponse;
	}

	public void setByteResponse(boolean byteResponse) {
		isByteResponse = byteResponse;
	}
}
